<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: jshand
  Date: 2022-03-23
  Time: 9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

   列表页
<%--   <%--%>
<%--       List<Map> personList = (List) request.getAttribute("list");--%>
<%--       for (int i = 0; i < personList.size(); i++) {--%>
<%--           Map person = personList.get(i);--%>

<%--   %>--%>
<%--    <p> <%=i%> --  <%=person.get("name")%> -- <%=person.get("address")%></p>--%>


<%--    <%--%>
<%--        }--%>
<%--    %>--%>

<%--    jstl的写法--%>

    <c:forEach items="${list}" var="person" varStatus="stat">
        <p>
            ${stat.count} --- ${person.name}--- ${person.address}
        </p>
    </c:forEach>


</body>
</html>
